home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
rayshade
/
makefile.amiga
< prev
next >
Wrap
Makefile
|
1995-02-13
|
4KB
|
163 lines
#
# Makefile for rayshade.
#
# Craig Kolb
#
# $Id: Makefile.SH,v 4.0 91/07/17 14:50:30 kolb Exp Locker: kolb $
#
# Bin directory
#
BINDIR = /usr/local
OPTIMIZE = -O3 -fno-defer-pop -fno-builtin
URTINC =
CCFLAGS = -c -Dexit=myexit -m68020 -m68881 -Dmain=mymain
URTLIB = ../URT/lib/librle.a
CC = gcc
MKDEP = /mkdep
YACC = bison -y
CLC =
LIBRAYDIR = ../libray
LIBSHADEDIR = ../libshade
INCLUDE = -nostdinc -I$(LIBRAYDIR) -I$(LIBSHADEDIR) $(URTINC) -I.. \
-IGNU:include -IGNU:os-include -Isc:include
YFLAGS = -d
LIBRAY = $(LIBRAYDIR)/libray.a
LIBSHADE = $(LIBSHADEDIR)/libshade.a
#
# If you are using LINDA, add -DLINDA
# If you are running 'tsnet'-style LINDA, add -DTSNET
# If you are running on a Multimax, add -DMULTIMAX -DSHAREDMEM
#
CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
#
# C-Linda flags, if appropriate
#CLFLAGS = -linda ts 20000
#
.c.o:
$(CC) $(CFLAGS) $<
SHELL = /bin/sh
LIBS = $(LIBSHADE) $(LIBRAY) $(URTLIB) ../libextra/libextra.a -lm -lfl
LDFLAGS = -s -m68020
DRIVE_C = main.c raytrace.c version.c
DRIVE_H = raytrace.h
DRIVE_O = main.o raytrace.o version.o
HFILES = $(DRIVE_H)
CFILES = $(DRIVE_C)
SHFILES = Makefile.SH
OBJ = $(DRIVE_O)
DEPENDSRC = $(DRIVE_C)
#
# Change $(CC) below to $(CLC) if using Linda.
#
rayshade: $(OBJ) # $(LIBS)
$(CC) $(LDFLAGS) -o rayshade GNU:lib/rle_stderrfix.o $(OBJ) $(LIBS)
#
# Uncomment the following rule if using Linda.
#
#raytrace.lo: raytrace.cl
# $(CLC) $(INCLUDE) $(LCFLAGS) -c raytrace.cl
#
# End of configuration section
#
install: rayshade
mv rayshade $(BINDIR)/rayshade
clean:
delete \#?.o quiet
realclean:
delete \#?.o y.tab.h
delete \#?.orig Makefile QUIET
lint:
lint $(CFLAGS) -x $(CFILES) -lm
tags:
ctags -t $(CFILES)
# DO NOT DELETE THIS LINE
main.o: main.c
main.o: /config.h
#main.o: /include/rle.h
#main.o: /include/rle_code.h
#main.o: /include/rle_raw.h
main.o: /libray/libcommon/color.h
main.o: /libray/libcommon/common.h
main.o: /libray/libcommon/error.h
main.o: /libray/libcommon/expr.h
main.o: /libray/libcommon/ray.h
main.o: /libray/libcommon/transform.h
main.o: /libray/libcommon/vector.h
main.o: /libray/libobj/bounds.h
main.o: /libray/libobj/geom.h
main.o: /libshade/funcdefs.h
main.o: /libshade/options.h
main.o: /libshade/picture.h
main.o: /libshade/rayshade.h
main.o: /libshade/stats.h
main.o: /libshade/viewing.h
raytrace.o: raytrace.c
raytrace.o: /config.h
#raytrace.o: /include/rle.h
#raytrace.o: /include/rle_code.h
#raytrace.o: /include/rle_raw.h
raytrace.o: /libray/libcommon/color.h
raytrace.o: /libray/libcommon/common.h
raytrace.o: /libray/libcommon/error.h
raytrace.o: /libray/libcommon/expr.h
raytrace.o: /libray/libcommon/ray.h
raytrace.o: /libray/libcommon/sampling.h
raytrace.o: /libray/libcommon/transform.h
raytrace.o: /libray/libcommon/vector.h
raytrace.o: /libray/libobj/bounds.h
raytrace.o: /libray/libobj/geom.h
raytrace.o: /libray/libsurf/atmosphere.h
raytrace.o: /libray/libsurf/surface.h
raytrace.o: /libshade/funcdefs.h
raytrace.o: /libshade/options.h
raytrace.o: /libshade/picture.h
raytrace.o: /libshade/rayshade.h
raytrace.o: /libshade/stats.h
raytrace.o: /libshade/viewing.h
raytrace.o: raytrace.h
version.o: version.c
version.o: /config.h
version.o: /libray/libcommon/color.h
version.o: /libray/libcommon/common.h
version.o: /libray/libcommon/error.h
version.o: /libray/libcommon/expr.h
version.o: /libray/libcommon/ray.h
version.o: /libray/libcommon/transform.h
version.o: /libray/libcommon/vector.h
version.o: /libray/libobj/bounds.h
version.o: /libray/libobj/geom.h
version.o: /libshade/funcdefs.h
version.o: /libshade/rayshade.h
version.o: /libshade/stats.h
version.o: /patchlevel.h
_main.o: _main.c
gcc -O -fstrength-reduce -finline-functions -c _main.c
exit.o: exit.c
gcc -O -fstrength-reduce -finline-functions -c exit.c